package com.googlecode.grima.bpm;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class CalculateItems implements JavaDelegate {

//	private DescriptiveService descriptiveService;

	@Override
	public void execute(DelegateExecution execution) throws Exception {

		try {

//			ClassPathXmlApplicationContext cpx = new ClassPathXmlApplicationContext("classpath:persistence-context.xml");
//			descriptiveService = (DescriptiveService) cpx.getBean("descriptiveService");
//
//			Long id = (Long) execution.getVariable("descriptive.id");
//			Descriptive descriptive = descriptiveService.getByPrimaryKey(id);
//
//			Boolean enviar = Boolean.FALSE;
//
//			execution.setVariable("pecasEnviar", enviar);
//			cpx.close();

		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
